package server;

import java.util.HashMap;
import java.util.Map;

/**
 * @author HuanyuZhou
 * @date 2020/5/29 14:24
 */
//Mapper组件，封装Host
public class Mapper {

    //key为name，value为Host.一个server可以有多个host
    private Map<String,Host> hostMap;

    public Mapper() {
        this.hostMap = new HashMap<>();
    }

    public Map<String, Host> getHostMap() {
        return hostMap;
    }

    public void setHostMap(Map<String, Host> hostMap) {
        this.hostMap = hostMap;
    }

    @Override
    public String toString() {
        return "Mapper{" +
                "hostMap=" + hostMap +
                '}';
    }
}
